home *** CD-ROM | disk | FTP | other *** search
- Path: news.uni-jena.de!news
- From: mkt@isun04.inf.uni-jena.de (Tilo Koerbs)
- Newsgroups: comp.lang.c++
- Subject: default argument problem on rs6000
- Date: 7 Feb 1996 13:50:33 GMT
- Organization: Lehrstuhl fuer Rechnerarchitektur- und kommunikation, FSU Jena
- Message-ID: <4faan9$1rp@fsuj01.rz.uni-jena.de>
- Reply-To: mkt@isun04.inf.uni-jena.de
- NNTP-Posting-Host: isun07.inf.uni-jena.de
-
- When compiling the following code on an rs6000 (ibm) I get an error:
-
- struct X {
- static int f() throw();
- X(int i = f());
- };
- inline int X::f() { return 0; }
-
- Error message: "X::f()" was declared with external linkage
- and called before it is defined as inline.
-
- No other compiler reports an error.
- And I cannot find a constructor call in that code nor can I believe
- that the declaration of the destructor will evaluate f() .
-
- Any comments?
- Bye.
- Tilo Koerbs, mkt@uni-jena.de
-
-
-